package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `gorm:"type:char(11);not null;"`
	Password string `gorm:"type:char(32);not null;"`
	NickName string `gorm:"type:varchar(30);not null;"`
	Image    string `gorm:"type:varchar(500);not null;"`
}

type Moment struct {
	gorm.Model
	Title  string `gorm:"type:varchar(50);not null;"`
	Image  string `gorm:"type:varchar(500);not null;"`
	UserId int64  `gorm:"type:int(11);not null;"`
}
